<script>
	$(function(){
		var dtype =${(po.discount_type)!0};
		$("input[name='customerType.discount_type']").eq(dtype).attr("checked",'checked');
		$("#shop_id").combobox({    
		    url: '/shop/combobox',    
		    required: true,
		    valueField:'id',
    		textField:'name',
		    width:250
		}); 
	})
</script>
<form method="post" id="editForm" name="editForm">
	<input type="hidden" name="customerType.id" value="${(po.id)!}" id="poid">
	<div id="tt" class="easyui-tabs" style="width: 786px; height: 450px;">
		<div title="会员类型" style="padding: 5px;">
			<table class="tableForm tableCss">
				<tr>
					<th>商户</th>
					<td colspan="3">
						 <input id="shop_id" name="customerType.shop_id" value="${(po.shop_id)!}"> 
					</td>
				</tr>
				<tr>
					<th><font color=red>*</font>类别名</th>
					<td colspan="3"><input type="text" name="customerType.name" class="easyui-validatebox"
						value="${(po.name)!}" data-options="required:true"></td>
				</tr>
				<tr>
					<th>折扣类别</th>
					<td>
						固定值折扣<input type="radio" name="customerType.discount_type" value="0" checked="checked">
						百分比折扣<input type="radio" name="customerType.discount_type" value="1">
					</td>
					<th>折扣值</th>
					<td>
					<input type="text" name="customerType.discount"
					class="easyui-numberbox" value="${(po.discount)!}" data-options="min:0,precision:2"></td>
				</tr>
				
			</table>
		</div>
	</div>
</form>